<?php
/**
 * Crmlite_View_Helper_Dump
 *
 * @final
 * @package Crmlite_App
 * @version $Id: Dump.php 28 2007-08-30 04:15:14Z etng2004 $
 * @copyright 2006-2007 ETE.CN
 * @author Yi BO  <etng2004@gmail.com>
 * @license PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
 */
class Crmlite_View_Helper_Dump
{
    /**
     * view
     *
     * @var Zend_View_Interface
     * @access public
     */
    public $view;

    /**
     * setView
     *
     * @param Zend_View_Interface $view
     * @access public
     * @return Zend_View_Interface
     */
    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
        return $this->view;
    }

    public function dump($var)
    {
    	echo "<pre>". htmlspecialchars(var_export($var, true)) ."</pre>";
    }
}
